package cn.edu.zucc.online_market.model;

public class BeanProduct {
	public static final String[] tableProductTitles={"product name","price"};
	//user can see
	private String product_name;
	private float price;
	private float count;
	private String product_standard;
	private String product_details;
	//user can not see
	private int product_id;
	private int product_class_id;
	
	public int getProduct_id() {
		return product_id;
	}

	public void setProduct_id(int product_id) {
		this.product_id = product_id;
	}

	public int getProduct_class_id() {
		return product_class_id;
	}

	public void setProduct_class_id(int product_class_id) {
		this.product_class_id = product_class_id;
	}

	public String getProduct_name() {
		return product_name;
	}

	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getCount() {
		return count;
	}

	public void setCount(float count) {
		this.count = count;
	}
	public String getProduct_standard() {
		return product_standard;
	}

	public void setProduct_standard(String product_standard) {
		this.product_standard = product_standard;
	}

	public String getProduct_details() {
		return product_details;
	}

	public void setProduct_details(String product_details) {
		this.product_details = product_details;
	}
	
	
	public String getCell(int col){
		if(col==0) return this.getProduct_name();
		else if(col==1) return Float.toString(this.getPrice());
		else if(col==5) return "";
		
		else return "";
	}
}
